package org.tq.test.validate;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

public class ValidBean {
	private String name;
	private int totalCount;

	/**
	 * @return the name
	 */
	@NotNull
	public String getName() {
		return name;
	}

	/**
	 * @return the totalCount
	 */
	@Max(100)
	public int getTotalCount() {
		return totalCount;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @param totalCount the totalCount to set
	 */
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

}
